<script setup>
import {
  Clock,
  TrendCharts,
  MagicStick,
  WalletFilled,
  Flag,
  BrushFilled
} from '@element-plus/icons-vue'
</script>

<template>
  <div class="title">
    <div class="container">
      <div class="flex-row">
        <div class="flex-item" style="margin-top: 15px">
          <el-icon size="24"><Clock /></el-icon>
          <p>保障服务</p>
        </div>
        <div class="flex-item" style="margin-top: 15px">
          <el-icon size="24"><TrendCharts /></el-icon>
          <p>企业团购</p>
        </div>
        <div class="flex-item" style="margin-top: 15px">
          <el-icon size="24"><MagicStick /></el-icon>
          <p>F码通行</p>
        </div>
      </div>
      <div class="flex-row">
        <div class="flex-item" style="margin-top: 18px">
          <el-icon size="24"><WalletFilled /></el-icon>
          <p>米粉卡</p>
        </div>
        <div class="flex-item" style="margin-top: 18px">
          <el-icon size="24"><Flag /></el-icon>
          <p>以旧换新</p>
        </div>
        <div class="flex-item" style="margin-top: 18px">
          <el-icon size="24"><BrushFilled /></el-icon>
          <p>话费重置</p>
        </div>
      </div>
    </div>
    <div>
      <img
        src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6b67117bc92924fb2ff0e7ad2be86084.png?w=632&h=340"
        alt=""
      />
    </div>
    <div>
      <img
        src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/8dede2520f8dfff9c9b690af498cafe8.jpg?w=632&h=340"
        alt=""
      />
    </div>
    <div>
      <img
        src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/1ac77590368ff636d0b4f6a988133f55.png?w=632&h=340"
        alt=""
      />
    </div>
  </div>
  <br />
  <br />
  <img
    class="active"
    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/d1dc6425f888ffe17e08c30e5a5b707b.jpg?thumb=1&w=1226&h=120&f=webp&q=90"
    alt=""
  />
</template>

<style scoped lang="scss">
.title {
  margin-top: 10px;
  width: 1240px;
  height: 100%;
  background-color: #665e57;
  display: flex;
  position: relative;
  left: 332px;
  justify-content: space-between;
  color: rgb(211, 211, 211);
  .container {
    display: flex;
    flex-direction: column;
    width: 228px;
    height: 164px;
    .flex-row {
      display: flex;
      justify-content: space-between;
    }
    .flex-item {
      flex: 1;
      &:hover {
        cursor: pointer;
        color: white;
      }
    }
  }
  img {
    width: 316px;
    height: 170px;
    transition: all 0.5s;
    &:hover {
      cursor: pointer;
      transform: translate3d(0, -3px, 0);
      box-shadow: 0 3px 8px rgb(0 0 0 / 20%);
    }
  }
}
.active {
  width: 1238px;
  position: relative;
  left: 332px;
  transition: all 0.5s;
  &:hover {
    cursor: pointer;
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 3px 8px rgb(0 0 0 / 20%);
  }
}
</style>
